﻿package mortal.game.view.closedBetaGiftBagNew
{
    import mortal.game.cache.*;
    import mortal.game.manager.*;
    import mortal.game.resource.*;

    public class ClosedBetaGiftBagUtil extends Object
    {

        public function ClosedBetaGiftBagUtil()
        {
            return;
        }// end function

        public static function CheckOpenLevel() : Boolean
        {
            var _loc_1:* = Cache.instance.role.entityInfo.level;
            var _loc_2:* = GameDefConfig.instance.getSystemOpenLevel(82);
            if (_loc_1 >= _loc_2)
            {
                return true;
            }
            return false;
        }// end function

        public static function getLeftTime() : Number
        {
            var _loc_1:* = ClockManager.instance.serverOpenDateNum;
            var _loc_2:* = 10 - _loc_1;
            if (_loc_2 < 0)
            {
                return 0;
            }
            var _loc_3:* = ClockManager.instance.todayLeftMillisecond;
            return _loc_2 * 24 * 60 * 60 * 1000 + _loc_3;
        }// end function

    }
}
